package com.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.crm.entity.Contract;
import com.crm.vo.SaleVo;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ContractMapper extends BaseMapper<Contract> {
    //查询时间
    List<Contract> selectTime(LocalDate beginCreateTime, LocalDate endCreateTime);

    List<SaleVo> selectSaleList(Page<Contract> page, LocalDate begin, LocalDate end);

    Long selectCountSale(LocalDate begin, LocalDate end);

    List<Contract> selectDateTime(LocalDate begin, LocalDate end);
}
